package com.scorpio.appuser.service;

import com.scorpio.appuser.domain.UserShopCartEntity;
import com.scorpio.appuser.dto.UserShopCartDTO;
import com.scorpio.appuser.vo.UpdateShopCartCheckVo;
import com.scorpio.appuser.vo.UpdateShopCartNumberVo;
import com.scorpio.appuser.vo.AddShopCartVo;

import java.util.List;

public interface UserShopCartService {

    //查询用户购物车
    UserShopCartEntity selectByUser(Long uid, Long id);

    List<UserShopCartEntity> selectBysUser(Long uid, Long[] ids);


    List<UserShopCartDTO> appList(Long uid);

    int addShopCart(AddShopCartVo vo);

    int updateShopCartNumber(UpdateShopCartNumberVo vo);

    int updateShopCartCheck(UpdateShopCartCheckVo vo);

    int deleteShopCart(Long uid, Long[] ids);

    int clearShopCart(Long uid);

    int shopCartTotal(Long uid);

}
